$ = jQuery

$.fn.extend
	answer: (options) ->
		settings = 
			options1: true
		
		settings = $.extend settings, options
		
		return @each () ->
			$this = $(this);
			onClick = () ->
				$dialog = $("#answer")
				rel = $(this).attr('rel');
				$('#Answer_parentId', $dialog).val(rel)
				$dialog.dialog("open")
				return false
			$this.on('click', '.reply', onClick)
			return